﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="header.ascx.cs" Inherits="AiLuWeb.WebSite.UC.header" %>
<%@ Import Namespace="System.Linq" %>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td align="center">
      <table width="985" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td height="83"><img src="/images/logo.jpg"  /></td>
                    <td><img src="/images/daohang.jpg" border="0" usemap="#MapMap"/>
                      <map name="MapMap">
                        <area shape="rect" coords="34,28,144,58" href="/index.aspx" />
                        <!--首 页-->
                        <area shape="rect" coords="146,28,253,58" href="/lanmu.aspx?id=5" />
                        <!--关于艾鲁-->
                        <area shape="rect" coords="255,28,362,58" href="/products.aspx" />
                        <!--产品中心-->
                        <area shape="rect" coords="364,28,471,58" href="/newslist.aspx?id=3" />
                        <!--新闻中心-->
                        <area shape="rect" coords="473,28,580,58" href="/brand.aspx" />
                        <!--品牌专区-->
                        <area shape="rect" coords="582,28,704,58" href="/lanmu.aspx?id=9" />
                        <!--联系我们-->
                      </map></td>
              </tr>
            </table>
      </td>
  </tr>
  </table>
<% 
    if (CurrentNavType == NavigationType.Index || CurrentNavType == NavigationType.Product || CurrentNavType == NavigationType.Brand)
    {
%>
<link type="text/css" rel="stylesheet" href="/css/skitter.styles.css" />
<script type="text/javascript" language="javascript" src="/js/jquery.easing.1.3.js"></script>
<script type="text/javascript" language="javascript" src="/js/jquery.skitter.min.js"></script>
<!-- Init Skitter -->
<script type="text/javascript" language="javascript">
    $(document).ready(function () {
        $(".banner").skitter({/*常用配置*/
            theme: 'default',
            animation: 'random', /*36种效果，现为随机*/
            label: false,
            numbers_align: 'center',
            progressbar: false,
            dots: false, /*为flase是数字，true是圆点*/
            interval: 1000
        });
    });
</script>
<% 
    Hashtable table = new Hashtable();
    table.Clear();
    table.Add(AiLuWeb.Model.PhotoImgsHash.CId, 1);
    System.Collections.Generic.IList<AiLuWeb.Model.PhotoImgs> photoImgsList = new AiLuWeb.Business.PhotoImgsBusinessFactory().CreatePhotoImgsBusiness().GetAllPhotoImgs(table);
%>
<!--首页-->
<div style="width: 100%; overflow: hidden; height: 330px; position: relative; z-index: 0;">
    <div style="width: 100%; height: 330px; position: relative; left: 50%;">
        <div style="position: relative; width: 100%; height: 330px; z-index: 1; left: -50%;">
            <div class="border_box">
                <div class="banner box_skitter">
                    <ul>
                        <% 
                            foreach (var item in photoImgsList)
                            { 
                        %>
                        <li><img src="<%=item.BigSrc %>" alt="<%=item.Summary %>" title="<%=item.Summary %>"/></li>
                        <%
                            }    
                        %>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<%
    }
    else
    {
%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td align="center" background="/images/index_16.jpg">
            <table width="100" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
                            width="985" height="271">
                            <param name="movie" value="/index_datu.swf" />
                            <param name="quality" value="high" />
                            <param name="wmode" value="transparent" />
                            <embed src="/index_datu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="985" height="271"></embed>
                        </object>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<%
    }
%>
